﻿/*
 * @Descripttion: 
 * @version: 
 * @Author: MichaelHu
 * @Date: 2021-12-28 13:55:48
 * @LastEditors: MichaelHu
 * @LastEditTime: 2022-02-25 17:37:21
 */
#ifndef _lualib_user_h
#define _lualib_user_h

#include "lua_user/lua_lvgl_lib.h"
#include "lua/lauxlib.h"
#include "lua/lua.h"
#include "lua/lualib.h"

LUALIB_API void luaL_openlibs_user(lua_State *L);

#define LUA_OBJLIBNAME "obj"
LUAMOD_API int(lua_lv_obj_funinit)(lua_State *L);

#define LUA_LVGLLIBNAME "lv"
LUAMOD_API int(lua_lvgl_funinit)(lua_State *L);

#define LUA_ARRAYLIBNAME "ts"
LUAMOD_API int(lua_array_funinit)(lua_State *L);

#define LUA_USERLIBNAME "sys"
LUAMOD_API int(lua_user_funinit)(lua_State *L);

#define LUA_ANIMLIBNAME "anim"
LUAMOD_API int(lua_lv_anim_funinit)(lua_State *L);

#define LUA_ARCLIBNAME "arc"
LUAMOD_API int(lua_lv_arc_funinit)(lua_State *L);

#define LUA_BARLIBNAME "bar"
LUAMOD_API int(lua_lv_bar_funinit)(lua_State *L);

#define LUA_BTNLIBNAME "btn"
LUAMOD_API int(lua_lv_btn_funinit)(lua_State *L);

#define LUA_BTNMATRIXLIBNAME "btnmatrix"
LUAMOD_API int(lua_lv_btnmatrix_funinit)(lua_State *L);

#define LUA_CANVASLIBNAME "canvas"
LUAMOD_API int(lua_lv_canvas_funinit)(lua_State *L);

#define LUA_CHECKBOXLIBNAME "checkbox"
LUAMOD_API int(lua_lv_checkbox_funinit)(lua_State *L);

#define LUA_DROPDOWNLIBNAME "dropdown"
LUAMOD_API int(lua_lv_dropdown_funinit)(lua_State *L);

#define LUA_IMGLIBNAME "img"
LUAMOD_API int(lua_lv_img_funinit)(lua_State *L);

#define LUA_LABELLIBNAME "label"
LUAMOD_API int(lua_lv_label_funinit)(lua_State *L);

#define LUA_LINELIBNAME "line"
LUAMOD_API int(lua_lv_line_funinit)(lua_State *L);

#define LUA_OBJX_TEMPLLIBNAME "objx_templ"
LUAMOD_API int(lua_lv_objx_templ_funinit)(lua_State *L);

#define LUA_ROLLERLIBNAME "roller"
LUAMOD_API int(lua_lv_roller_funinit)(lua_State *L);

#define LUA_SLIDERLIBNAME "slider"
LUAMOD_API int(lua_lv_slider_funinit)(lua_State *L);

#define LUA_SWITCHLIBNAME "switch"
LUAMOD_API int(lua_lv_switch_funinit)(lua_State *L);

#define LUA_TABLELIBNAME "table"
LUAMOD_API int(lua_lv_table_funinit)(lua_State *L);

#define LUA_TEXTAREALIBNAME "textarea"
LUAMOD_API int(lua_lv_textarea_funinit)(lua_State *L);


#endif
